import request from '@/utils/request'

// 查询员工提成列表
export function listHlcommission(query) {
  return request({
    url: '/hotel/hlcommission/list',
    method: 'get',
    params: query
  })
}

// 查询员工提成详细
export function getHlcommission(id) {
  return request({
    url: '/hotel/hlcommission/' + id,
    method: 'get'
  })
}

// 新增员工提成
export function addHlcommission(data) {
  return request({
    url: '/hotel/hlcommission',
    method: 'post',
    data: data
  })
}

// 修改员工提成
export function updateHlcommission(data) {
  return request({
    url: '/hotel/hlcommission',
    method: 'put',
    data: data
  })
}

// 删除员工提成
export function delHlcommission(id) {
  return request({
    url: '/hotel/hlcommission/' + id,
    method: 'delete'
  })
}
